Skip to content

Specify dtype as int32 for paddle.cumsum due to API Change - #3692

Merged
Jiang-Jia-Jun merged 1 commit into
PaddlePaddle:developfrom
cattidea:add_int32_2_cumsum
Aug 29, 2025
Merged

Jiang-Jia-Jun merged 1 commit into
PaddlePaddle:developfrom
cattidea:add_int32_2_cumsum

Conversation

@DrRyanHuang

@DrRyanHuang DrRyanHuang commented Aug 28, 2025 •

Copy link
Copy Markdown
Collaborator

Paddle#74625 (合入时间8月20号9点) 引入后,paddle.cumsum 输出值 cum_offsets 的默认 dtype 是 int64,不再是 int32

后面自定义算子中存在按照 int32 类型解析的逻辑,存在问题

cum_offsets.data<int>(),

本PR将必要的 paddle.cumsum 参数 dtype 指定为 int32

PS:

目前CI上 FD develop 分支是锁的 python -m pip install paddlepaddle-gpu==3.0.0.dev20250818 -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/ 这个 paddle 版本

cc @SigureMo

@paddle-bot

paddle-bot Bot commented Aug 28, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@codecov-commenter

codecov-commenter commented Aug 29, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@368bbd9). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3692   +/-   ##
==========================================
  Coverage           ?   16.66%           
==========================================
  Files              ?        4           
  Lines              ?        6           
  Branches           ?        0           
==========================================
  Hits               ?        1           
  Misses             ?        5           
  Partials           ?        0           
Flag Coverage Δ
diff 16.66% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Jiang-Jia-Jun
Jiang-Jia-Jun merged commit 45f81b3 into PaddlePaddle:develop Aug 29, 2025
@DrRyanHuang
DrRyanHuang deleted the add_int32_2_cumsum branch August 29, 2025 06:57
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants